import {useRouteError} from 'react-router-dom';
function ErrorPage() {
    const error = useRouteError();
    console.log(error);
    return (
        <div>
            <p>
                this is an errorPage
            </p>
        </div>
    )
}
export default ErrorPage;